package cn.edu.sdjzu.xg.kcsj.domain;

import java.io.Serializable;
import java.math.BigInteger;

public class Dictionary implements Comparable<Dictionary>, Serializable {
    private int id;
    private String description;

    public Dictionary(int id, String description) {
        this.id = id;
        this.description = description;
    }


    @Override
    public int compareTo(Dictionary o) {
        return this.id - o.id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "Dictionary{" +
                "id=" + id +
                ", description='" + description + '\'' +
                '}';
    }
}
